package com.wicket.okrframework.biz.service.dto.common;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class NewOrgGradeScopeDto extends BaseDto implements Serializable {

    /**
     * 归属对象实例ID:
     */
    @ApiModelProperty("归属对象实例ID")
    private String entityId;

    /**
     * 岗位等级ID:
     */
    @ApiModelProperty("岗位等级ID")
    private String stationGradeId;

    /**
     * 岗位等级别名:
     */
    @ApiModelProperty("岗位等级别名")
    private String stationGradeAlias;

    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    /**
     * 批次ID:
     */
    @ApiModelProperty("批次ID")
    private String batchId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        NewOrgGradeScopeDto that = (NewOrgGradeScopeDto) o;
        return entityId == that.entityId && stationGradeId == that.stationGradeId && stationGradeAlias == that.stationGradeAlias && orderNumber == that.orderNumber && batchId == that.batchId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), entityId, stationGradeId, stationGradeAlias, orderNumber, batchId);
    }

}
